/*
 * Copyright (c) 2006, 2021, webrx.cn All rights reserved.
 *
 */
package cn.webrx;

/**
 * <p>Project: javaseapp - Oper1
 * <p>Powered by webrx On 2021-07-27 14:29:04
 * <p>Created by IntelliJ IDEA
 *
 * @author webrx [webrx@126.com]
 * @version 1.0
 * @since 16
 */
public class Oper5 {
    public static void main(String[] args) {
        System.out.println(!(1 == 1));//false
        if (!true != !true) {
            System.out.println("yes");
        } else {
            System.out.println("no");
        }

        //&& 与  || !
        int i = 1;
        System.out.println(false && ++i == 2);
        System.out.println(i);
        System.out.println(false & ++i == 2);
        System.out.println(i);


        System.out.println(true || true);
        System.out.println(false || true);
        System.out.println(true || false);
        System.out.println(false || false);

    }
}
